//
// Created by deepin on 2020/11/12.
//
#include <iostream>
#include "stock20.h"
const int STKS = 4;
/*
int main ()
{
  Stock2 stock2s[STKS] = {
     Stock2("NanSmart",12,20.0),
     Stock2("Boffo Objects",200,20.0),
     Stock2("Monolithic Obelisks",130,3.25),
     Stock2("Fleep Enterprises",60,6.5)
  };
  std::cout << "Stock holdings:\n";
  int st;
  for (st =0;st<STKS;st++)
    stock2s[st].show();
  const Stock2 * top = &stock2s[0];
  for (st = 1;st<STKS;st++)
    top = &top->topval(stock2s[st]);  // top的total_val最大
  std::cout << "\nMost valuable holding:\n";
  top->show();
  return 0;
}
*/
